home *** CD-ROM | disk | FTP | other *** search
/ Iron Maiden - Maiden Hell! / Iron Maiden - Maiden Hell! Promotional CD-ROM.iso / mac / promo.dxr / scripts_148_switch video = .ls < prev    next >
Encoding:
Text File  |  1998-09-16  |  1.8 KB  |  40 lines

  1. on mouseEnter
  2.   set the cursor of sprite the currentSpriteNum to [the number of member "finger", the number of member "fingermask"]
  3.   set the member of sprite 33 to "title" & string(the currentSpriteNum - 30)
  4. end
  5.  
  6. on mouseDown
  7.   global gVideoDuration, gVidVol, gVideoSize
  8.   set the mrate of sprite(7) to 0
  9.   set the member of sprite 7 to "vid" & char 9 of the name of member the member of sprite the currentSpriteNum
  10.   set the member of sprite 31 to "vidThumb10"
  11.   set the member of sprite 32 to "vidThumb20"
  12.   updateStage()
  13.   set the member of sprite the currentSpriteNum to char 1 to 9 of the name of member the member of sprite the currentSpriteNum & "1"
  14.   puppetSprite(10, 0)
  15.   puppetSprite(11, 0)
  16.   set the member of sprite 1 to "singlebg" & the currentSpriteNum - 30 & "0"
  17.   set the member of sprite 10 to "single" & the currentSpriteNum - 30 & "black"
  18.   set the member of sprite 11 to "single" & the currentSpriteNum - 30 & "white"
  19.   set the member of sprite 15 to "singlebg" & the currentSpriteNum - 30 & "mask"
  20.   updateStage()
  21.   if the height of member the member of sprite 11 > the height of sprite 3 then
  22.     set the visible of sprite 4 to 1
  23.     set the visible of sprite 5 to 1
  24.   else
  25.     set the visible of sprite 4 to 0
  26.     set the visible of sprite 5 to 0
  27.   end if
  28.   set gVideoDuration to the duration of member ("vid" & char 9 of the name of member the member of sprite the currentSpriteNum)
  29.   updateStage()
  30.   set the mrate of sprite(7) to 1
  31.   set the volumeLevel of sprite(7) to gVidVol
  32. end
  33.  
  34. on mouseLeave
  35.   set the cursor of sprite the currentSpriteNum to [the number of member "finger", the number of member "fingermask"]
  36.   if the last char in the name of member the member of sprite the currentSpriteNum = "0" then
  37.     set the member of sprite 33 to "title" & string(3 - value(char 9 of the name of member the member of sprite the currentSpriteNum))
  38.   end if
  39. end
  40.